package com.wulian.user.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.wulian.user.entity.SysTree;

import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface SysTreeMapper extends BaseMapper<SysTree> {
    SysTree getCodeByIdAndType(HashMap<String,Object> map);

    List<SysTree> getListByCodeAndType(HashMap<String,Object> map1);

    Integer selectCodeCount(HashMap<String,Object> map);

    String selectMaxCode(HashMap<String,Object> map);

    /**
     * 根基类型获取所有以及菜单
     * @param typeId
     * @return
     */
    List<SysTree> getOneTrreByTypeId(@Param("typeId") Integer typeId);

}
